// @ts-ignore
/* eslint-disable */
import {request, useRequest} from 'umi';




/** 解析标识 GET /irs/currentUser */
export async function currentUser(params, options) {
  const res = request('/doa/irs/currentUser', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {...params},
    ...(options || {}),
  });
  return res
}

/** 解析标识 GET /irs/resolve */
export async function resolve(params, options) {
  const res = request('/doa/irs/resolve', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {...params},
    ...(options || {}),
  });
  return res
}


/** 获取当前irs的前缀 GET /irs/getPrefix */
export async function getLRSPrefix(params, options) {
  const res = request('/doa/irs/getPrefix', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {...params},
    ...(options || {}),
  });
  return res
}



  /** 获取自动生成的后缀 GET /irs/generateSuffix */
  export async function generateSuffix(params, options) {
  const res = request('/doa/irs/generateSuffix', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {...params},
    ...(options || {}),
  });
  return res
}


/** 获取自动生成的后缀 GET /irs/generateSuffix */
export async function getPrefix(params, options) {
  const res = request('/doa/irs/getPrefix', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {...params},
    ...(options || {}),
  });
  return res
}




/** 注册用户 POST /irs/registerUser */
export async function registerUser(body, options) {
  return request('/doa/irs/registerUser', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}


/** 登陆 POST /irs/login */
export async function loginUser(body, options) {
  return request('/doa/irs/login', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}



/** 更新注册用户信息 POST /irs/updateUser */
export async function updateUser(body, options) {
  return request('/doa/irs/updateUser', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}



/** 获取DO状态信息列表 GET /irs/getAllDos */
export async function getAllDos(params, options) {
  const res = request('/doa/irs/getAllDos', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {...params},
    ...(options || {}),
  });
  return res
}

/** 获取Repo和Regi状态信息列表 GET /irs/getRepoAndRegs */
export async function getRepoAndRegs(params, options) {
  const res = request('/doa/irs/getRepoAndRegs', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {...params},
    ...(options || {}),
  });
  return res
}

/** 获取用户状态信息列表 GET /irs/getAllUsers */
export async function getAllUsers(params, options) {
  const res = request('/doa/irs/getAllUsers', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {...params},
    ...(options || {}),
  });
  return res
}





/** 获取自动生成的前缀 GET /doa/irs/generatePrefix */

export async function generatePrefix(params, options) {
  const res = request('/doa/irs/generatePrefix', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {...params},
    ...(options || {}),
  });
  return res
}

/** 获取自动生成密钥 GET /doa/irs/generateKey */

export async function generateKey(params, options) {
  const res = request('/doa/irs/generateKey', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {...params},
    ...(options || {}),
  });
  return res
}



/** 注册新的后缀 POST /doa/irs/saveInfo */

export async function registerOrg(body, options) {
  return request('/doa/irs/saveInfo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}


/** 审核通过 POST /doa/irs/approve */

export async function approve(body, options) {
  return request('/doa/irs/approve', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 撤销审核 POST /doa/irs/disapprove */

export async function disapprove(body, options) {
  return request('/doa/irs/disapprove', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}




/** 申请新的后缀 POST /doa/irs/applyForPrefix */

export async function applyForPrefix(body, options) {
  return request('/doa/irs/applyForPrefix', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}


/** 更新前缀信息 POST /doa/irs/updateOrganization */

export async function updatePrefix(body, options) {
  return request('/doa/irs/updateOrganization', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}


/** 获取已分配的前缀列表 GET /doa/irs/all */

export async function getAllPrefixes(params, options) {
  const res = request('/doa/irs/all', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {...params},
    ...(options || {}),
  });
  return res
}

/** 获取统计信息 GET /doa/irs/stat */

export async function getStat(params, options) {
  const res = request('/doa/irs/stat', {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
    params: {...params},
    ...(options || {}),
  });
  return res
}
